package cn.outsourcing.supermarket.vo.hiolabs;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 购物车值对象
 *
 * @author gzkemays
 * @since 2021/10/24 2:24
 */
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class HiolabsCartVO {
  private Integer id;

  private Integer userId;

  private Integer goodsId;

  private String goodsSn;

  private Integer productId;

  private String goodsName;

  private String goodsAka;

  /** 重量 */
  private Double goodsWeight;

  /** 加入购物车时的价格 */
  private BigDecimal addPrice;

  private BigDecimal retailPrice;

  private Integer number;

  /** 规格属性组成的字符串，用来显示用 */
  private String goodsSpecifitionNameValue;

  /** product表对应的goods_specifition_ids */
  private String goodsSpecifitionIds;

  private Boolean checked;

  private String listPicUrl;

  /** 运费模板 */
  private Integer freightTemplateId;

  /** 0 */
  private Boolean isOnSale;

  private Integer addTime;

  /** 1 */
  private Boolean isFast;

  private Integer isDelete;
}
